#include "base.h"
#include "../base/common.h"

namespace base
{
    std::wstring utf8tounicode( const std::string &text )
    {
        CString strText = common::WinString::UTF8ToUnicode( text.c_str() );
        return std::wstring((const wchar_t *)strText);
    }

    std::string unicodetoutf8( const std::wstring &text )
    {
        CStringA strText = common::WinString::UnicodeToUTF8( text.c_str() );
        return std::string( (const char *)strText );
    }
}